
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户留言</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
</head>
<?php
header("content-type:text/html;charset=utf-8");
include "Mysql/MySqlClass.php";
$mySQL        = new Ycf\Lession\MySqlClass\MySqlClass('jinling_company', 'root', '123456');
$guestMessage = $mySQL->select("message");
?>
<body>
<div class="container">
    <h3 class="marginbot">客户留言管理<a href="newsEdit.php" class="sgbtn">添加新文章</a></h3>
    <div class="mainbox">
        <form action="" method="post">
            <table class="datalist fixwidth">
                <tbody>
                <tr>
                    <th nowrap="nowrap"><input name="chkall" id="chkall" class="checkbox" type="checkbox"><label for="chkall">删除</label></th>
                    <th nowrap="nowrap">客户昵称</th>
                    <th nowrap="nowrap">留言内容</th>
                    <th nowrap="nowrap">添加时间</th>
                </tr>
                <?php foreach ($guestMessage as $row) {;?>
                    <tr>
                        <td width="80"><input name="" value="<?php ;?>" class="checkbox" type="checkbox"></td>
                        <td><strong><?php echo $row['messageNickName']; ?></strong></td>
                        <td width="150"><?php echo $row['messageContent']; ?></td>
                        <td width="150"><?php echo $row['messageDate']; ?></td>
                        <td width="100"><a href="newsUpdate.php?noticId=<?php echo $row['noticeNo']; ?>">编辑</a></td>
                    </tr>
                <?php }
;?>
                <tr class="nobg">
                    <td><input value="提 交" class="btn" type="submit"></td>
                    <td class="tdpage" colspan="4">
                        <div class="pages">
                            <em>100</em>
                            <strong>1</strong>
                            <a href="">2</a>
                            <a href="">3</a>
                            <a href="">4</a>
                            <a href="" class="next">&rsaquo;&rsaquo;</a>
                            <a href="" class="last">... </a>
                            <kbd><input type="text" name="custompage" size="3" onkeydown="if(event.keyCode==13) {window.location='?page='+this.value; return false;}" /></kbd>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
            <div class="margintop"></div>
        </form>
    </div>
</div>
</body>
</html>
